#include "nonrationalcurveitem.h"
#include "curvescene.h"

NonRationalCurveItem::NonRationalCurveItem(
        INonRatioF *numCurve, CurveScene *scene) :
    CurveItem(numCurve, scene)
{
    m_numCurve = numCurve;
}

void NonRationalCurveItem::AddPoint(const QPointF &point)
{
    m_numCurve->AddPoint(point);

    SetupControlHandles();
    Update();
}
